package com.ruoyi.bus.controller.front;

import com.ruoyi.bus.domain.TransUnit;
import com.ruoyi.bus.service.ITransUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 物流商信息
 */
@Controller
@RequestMapping("/api/transUnit")
public class FrontTransUnitController {

    @Autowired
    private ITransUnitService transUnitService;

    /**
     * 获取物流商列表
     * @return
     */
    @RequestMapping("/list")
    @ResponseBody
    public List<TransUnit> getList(){
        return transUnitService.list();
    }
}
